<?php $this->template->add_admin_js_lib("SimpleAjaxUploader.min.js"); ?>
<?php $this->template->add_admin_js_lib("ajax_upload.js"); ?>
<?php $this->template->add_admin_css_lib("SimpleAjaxUploader.css"); ?>



<fieldset>
<div class="form-group">
   <label class="col-sm-2 control-label" for="<?php echo $id; ?>"><?php echo $label; ?></label>
   <div class="col-sm-10">
    <?php
			if(isset($value) && $value != ''):
			?>
		<img src="<?php echo $value;?>" class="btn-image-upload" height="<?php echo @$img_height;?>" width="<?php echo @$img_width;?>">
			<?php
			endif;
		?>
   <button type="button" id="<?php echo $id; ?>" class="btn btn-primary btn-sm mb-sm btn-labeled upload-ajax-file <?php echo $class; ?>" <?php echo $attribute; ?> name="<?php echo $name; ?>" >
                           <span class="btn-label"><i class="fa fa-cloud-upload"></i>
		</span>Choose file</button>
		
		<div id="pic-progress-wrap-<?php echo $id; ?>" class="progress-wrap">
		</div>	
		
		<div id="picbox-<?php echo $id; ?>" class="clear" style="padding-top:0px;padding-bottom:10px;">
		</div>
		<?php if($description !='') {?>
			<span class="help-block m-b-none"><?php echo $description; ?></span>
		<?php }?>
		<div id="errormsg-<?php echo $id; ?>" class="clearfix redtext">
		</div>
   </div>
</div>
</fieldset>

			

